
# 获取令牌方法
import requests

from api.ihrm_login_api import IhrmLoginApi


def get_header():
    req_data = {"mobile":"13800000002","password":"929itheima.CN032@.20250622"}
    resp = IhrmLoginApi.login(req_data)
    header = {"Authorization":resp.json().get("data")}
    return header

if __name__ == '__main__':
    print(get_header())